class Point:
  count = 0
  def __init__(self, x, y, count):
    self.__x = x
    self.__y = y
    Point.count = count
  def GetX(self):
    return self.__x
  def GetY(self):
    return self.__y
  def __str__(self):
    return '({0},{1})'.format(self.__x, self.__y)

class PointSet:
  def __init__(self):
    self.Pointlist = list()
    self.Pdict = {}
  def InputData(self):
    arr = [int(x) for x in input().split(',')]
    for i in range(0,len(arr),2):
      self.Pointlist.append(Point(arr[i], arr[i+1], Point.count+1))
      if arr[i] == 0 and arr[i+1] == 0:
        self.Pdict['原点'] = self.Pdict.get('原点', 0) + 1
      elif arr[i] == 0:
        self.Pdict['X轴'] = self.Pdict.get('X轴', 0) + 1
      elif arr[i+1] == 0:
        self.Pdict['Y轴'] = self.Pdict.get('Y轴', 0) + 1
      elif arr[i] > 0 and arr[i+1] > 0:
        self.Pdict['第一象限'] = self.Pdict.get('第一象限', 0) + 1
      elif arr[i] < 0 and arr[i+1] > 0:
        self.Pdict['第二象限'] = self.Pdict.get('第二象限', 0) + 1
      elif arr[i] > 0 and arr[i+1] < 0:
        self.Pdict['第四象限'] = self.Pdict.get('第四象限', 0) + 1
      elif arr[i] < 0 and arr[i+1] < 0:
        self.Pdict['第三象限'] = self.Pdict.get('第三象限', 0) + 1
  def GetStatistics(self):
    return self.Pdict


Example = PointSet()
Example.InputData()
print("共有{}个点".format(Point.count))
for i in range(0, len(Example.Pointlist)):
        print(Example.Pointlist[i],end=' ')
print()
print(Example.GetStatistics())